package cn.cqone.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Customer extends BaseDomain{

    //客户姓名
   private String name;

   //客户年龄
   private Integer age;

   //客户性别 0女 1男
   private Integer gender;

   //电话
   private String tel;

   //邮箱
   private String email;

   //qq
   private String qq;

   //微信
   private String wechat;

   //营销人员 单向多对一
   private Employee seller_id;

   //职业
   private DictoryDetails job_id;

   //工资
   private DictoryDetails salaryLevel_id;

   //客户来源
   private DictoryDetails customerSource_id;

   //创建人
   private Employee inputUser_id;

   //创建时间
   private Date inputTime;

   //所属租户 单向多对一
   private Tenant tenant_id;

   //客户状态
   private Integer status;

   @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
   public Date getInputTime() {
      return inputTime;
   }

   @DateTimeFormat(pattern = "yyyy-MM-dd")
   public void setInputTime(Date inputTime) {
      this.inputTime = inputTime;
   }
}
